package com.sjk.flink.util;

public final class ExecptionUtil {

    public static String getStackTraceMsg(Exception e) {
        StringBuilder sb = new StringBuilder();
        sb.append(e.getClass().getName() + " : " + e.getMessage());
        if (e.getStackTrace() != null) {
            for (StackTraceElement eele : e.getStackTrace()) {
                sb.append("\r\tat " + eele.toString());
            }
        }
        return sb.toString();
    }
}
